/*题目描述

设计一个函数，将两个浮点数传入，然后通过引用把其和、差、积传出。

函数原型如下：void Math(float a,float b,float &sum,float &sub,float &pro);
输入

输入两个浮点数
输出

输出两个浮点数的和、差、积。*/

#include <iostream>

using namespace std;

void Math(float a,float b,float &sum,float &sub,float &pro);
int main () 
{
	float a,b,sum,sub,pro;
	cin >> a >> b;
	Math(a,b,sum,sub,pro);
	cout << sum << " ";
	cout << sub << " ";
	cout << pro << " ";
}

void Math(float a,float b,float &sum,float &sub,float &pro)
{
	sum = a + b;
	sub = a - b;
	pro = a * b;
}